package com.mic.yzzn.plc.model;

public class StationQueueStatus {

	/** 当前执行到的指令数字索引 */
	private int indexOfCurrentIns = 0;
	/** 一个周期执行的指令数目 */
	private int numberOfRemainIns = 0;
	/** 已经执行的指令数目 */
	private int numberOfFinishIns = 0;
	/** 事件对应的队列优先级 */
	private int instructionPriority = 0;
	
	public StationQueueStatus(){
		
	}

	public String toString()
	{
		StringBuffer buffer = new StringBuffer();
		buffer.append("当前执行到的位置: " + indexOfCurrentIns + ", ");
		buffer.append("剩余指令数目: " + numberOfRemainIns + ", ");
		buffer.append("已经执行的指令数目: " + numberOfFinishIns + ", ");
		buffer.append("队列优先级: " + instructionPriority);

		return buffer.toString();
	}
	
	// getters and setters
	
	public int getIndexOfCurrentIns() {
		return indexOfCurrentIns;
	}
	public void setIndexOfCurrentIns(int indexOfCurrentIns) {
		this.indexOfCurrentIns = indexOfCurrentIns;
	}
	public int getNumberOfRemainIns() {
		return numberOfRemainIns;
	}
	public void setNumberOfRemainIns(int numberOfRemainIns) {
		this.numberOfRemainIns = numberOfRemainIns;
	}
	public int getNumberOfFinishIns() {
		return numberOfFinishIns;
	}
	public void setNumberOfFinishIns(int numberOfFinishIns) {
		this.numberOfFinishIns = numberOfFinishIns;
	}
	public int getInstructionPriority() {
		return instructionPriority;
	}
	public void setInstructionPriority(int instructionPriority) {
		this.instructionPriority = instructionPriority;
	}
	
	
}
